package com.itheima.dubbo.api;

import com.tanhua.model.domain.Question;

/**
 * @Author Pan Rundong
 * @Date 2023-02-27 9:39
 * @Desc 问题表Api
 */
public interface QuestionApi {
    /**
     * 根据用户Id查询
     * @Author: Pan Rundong
     * @param userId
     * @return com.tanhua.model.domain.Question
     */
    Question getById(Long userId);

    /**
     * 保存问题
     *
     * @param question
     * @return void
     * @Author Pan Rundong
     */
    void save(Question question);

    /**
     * 更新问题
     * @Author: Pan Rundong
     * @param question
     * @return void
     */
    void update(Question question);
}
